#ifndef capinterface_h
#define capinterface_h

#include "headerhandlerinterface.h"

typedef enum{
	CAP_NOCHANGE, CAP_MODIFIED, CAP_REJECT, CAP_ERROR
} CAP_RETURN;

class CAPInterface{
public:
	virtual CAP_RETURN ConnectCAP(void**, const char*, char**, int*)=0;
	virtual CAP_RETURN RequestCAP(void**, char**, unsigned int *, HeaderHandlerInterface*)=0;
	virtual CAP_RETURN PreRequestCAP(void**, HeaderHandlerInterface*)=0;
	virtual	CAP_RETURN ResponseCAP(void**, char**, unsigned int*, HeaderHandlerInterface*)=0;
	virtual CAP_RETURN PreResponseCAP(void**, HeaderHandlerInterface*)=0;
	virtual void CloseCAP(void**)=0;
	virtual	CAP_RETURN	InitCAP()=0;
	virtual	CAP_RETURN	ClearCAP()=0;
	virtual ~CAPInterface(){}
};

#endif
